package com.yrk.service.impl;

import com.yrk.dao.DeptDao;
import com.yrk.entity.Dept;
import com.yrk.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service("deptService")
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptDao deptDao;

    @Override
    public List<Dept> getDepts() {
        return deptDao.getDepts();
    }
}
